import Vue from 'vue'
import VueRouter from 'vue-router'
import GameMain from '../views/GameMain.vue'
import NewSave from "../views/NewSave.vue"
import Game from  "../views/GameRuntime.vue"

Vue.use(VueRouter)
const routes = [
    {
        path: '/GameMain',
        component: GameMain,
        ridrect: '/'
    },
    {
        path: "/newgame",
        component: NewSave
    },
    {
        path: "/game",
        component: Game
    },
    {
        path: "/room",
        component: ()=> import("../views/Room.vue")
    }
]

const router = new VueRouter({
    routes
})

export default router
